import axios from '../utils/axiosUtils';
import { Ilogin } from '../types/user';

//获取登录接口信息
export const loginApi = (data: Ilogin) => axios.post('/login', data);

//商家入驻
//验证商家手机号
export const telApi = (tel: string) => axios.get(`/gen/apply/shop/tel/${tel}`);

//验证商家店铺名
export const shopnameApi = (shopname: string) =>
  axios.get(`/gen/apply/shop/shopname/${shopname}`);

//商家入驻
export const addShopApi = (data: any) => axios.post('/gen/apply/shop', data);
